package com.m.dao.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Id;
import java.util.Date;

/**
 *
 * @author miracle
 * @since 2022-01-26
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("black_white_manager")
@ApiModel(value = "黑白名单管理", description = "黑白名单管理")
public class BlackWhiteManagerEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    @Id
    private Long id;

    @ApiModelProperty(value = "黑白名单类型 1. 黑名单 2.白名单")
    @TableField("type")
    private Integer type;

    @ApiModelProperty(value = "维度ID")
    @TableField("dim_id")
    private Long dimId;

    @ApiModelProperty(value = "维度名")
    @TableField("dim_name")
    private String dimName;

    @ApiModelProperty(value = "维度值")
    @TableField("dim_val")
    private String dimVal;

    @ApiModelProperty(value = "创建时间")
    @TableField("create_time")
    private Date createTime;

    @ApiModelProperty(value = "更新时间")
    @TableField("update_time")
    private Date updateTime;


}
